#include <iostream>
#include <string>
#include "Protocol.hpp"

int main()
{

    request req(10, 20, '+');
    std::string str;
    req.Serialization(str);
    std::cout << str << std::endl;
    req.print();

    req.deserialization(str);
    std::cout << req.X() << std::endl;
    std::cout << req.Y() << std::endl;
    std::cout << req.Oper() << std::endl;

    req.print();

    return 0;
}